package entries;

public class Constant extends Entry{

	/** Level that the Entry was declared on */
	private int level;
	
	/**
	 * Create a new Constant
	 * @param val The value of the constant, used to determine it's type
	 * @param level The level on which the constant was declared
	 */
	public Constant(char type, int level){
		this.kind = Entry.CONSTANT;
		this.level = level;
		this.type = type;
	}
	
	/** 
	 * Get the level of the Entry - Used by constants, variables and arguments
	 * @return this.level
	 */
	public int getLevel(){ return level; }
}
